// 团队
import Layout from "@/views/layout.vue";
export const team = {
    path: "team",
    name: "team",
    component: Layout,
    // redirect: '/index',
    meta: {
        title: "团队管理",
        icon: "",
    },
    children: [
        {
            path: "myteams",
            name: "myteams",
            component: Layout,
            meta: {
                title: "我的团队",
                icon: "",
            },
            children: [
                {
                    path: "myteam",
                    name: "myteam",
                    component: () => import("@/views/team/myteam/myteam.vue"),
                    meta: {
                        title: "我的团队",
                        icon: "",
                        list: ["团队管理"],
                    },
                },
                {
                    path: "jointeam",
                    name: "jointeam",
                    component: () => import("@/views/team/myteam/jointeam.vue"),
                    meta: {
                        title: "加入团队",
                        icon: "",
                        list: ["团队管理", "我的团队"],
                    },
                },
                {
                    path: "teammsg",
                    name: "teammsg",
                    component: () => import("@/views/team/myteam/teammsg.vue"),
                    meta: {
                        title: "创建团队",
                        icon: "",
                        list: ["团队管理", "我的团队"],
                    },
                },
            ],
        },
        {
            path: "teammanagement",
            name: "teammanagement",
            component: Layout,
            meta: {
                title: "团队管理",
                icon: "",
            },
            children: [
                // {
                //     path: "teamidauthentication",
                //     name: "teamidauthentication",
                //     component: () => import("@/views/team/teammanagement/teamidauthentication.vue"),
                //     meta: {
                //         title: "团队认证",
                //         icon: "",
                //         list: ["团队管理", "团队管理"],
                //     },
                // },
                {
                    path: "menbermanager",
                    name: "menbermanager",
                    component: () => import("@/views/team/teammanagement/menbermanager.vue"),
                    meta: {
                        title: "成员管理",
                        icon: "",
                        list: ["团队管理", "管理团队"],
                    },
                },
                // 审核申请
                {
                    path: "audit",
                    name: "audit",
                    component: () => import("@/views/team/teammanagement/audit.vue"),
                    meta: {
                        title: "审核申请",
                        icon: "",
                        list: ["团队管理", "管理团队", "成员管理"],
                    },
                },
                // 审核记录
                {
                    path: "auditlist",
                    name: "auditlist",
                    component: () => import("@/views/team/teammanagement/auditlist.vue"),
                    meta: {
                        title: "审核记录",
                        icon: "",
                        list: ["团队管理", "管理团队", "成员管理", "审核申请"],
                    },
                },
                // 邀请成员
                {
                    path: "invite",
                    name: "invite",
                    component: () => import("@/views/team/teammanagement/invite.vue"),
                    meta: {
                        title: "邀请成员",
                        icon: "",
                        list: ["团队管理", "管理团队", "成员管理"],
                    },
                },
                // 邀请记录
                {
                    path: "invitelist",
                    name: "invitelist",
                    component: () => import("@/views/team/teammanagement/invitelist.vue"),
                    meta: {
                        title: "邀请记录",
                        icon: "",
                        list: ["团队管理", "管理团队", "成员管理", "邀请成员"],
                    },
                },
                // 审核申请查看
                {
                    path: "menbermsg/:id",
                    name: "menbermsg",
                    component: () => import("@/views/team/teammanagement/menbermsg.vue"),
                    meta: {
                        title: "详情",
                        icon: "",
                        list: ["团队管理", "管理团队", "成员管理"],
                    },
                },
                // {
                //     path: "joinmenber",
                //     name: "joinmenber",
                //     component: () => import("@/views/team/teammanagement/joinmenber.vue"),
                //     meta: {
                //         title: "调入成员",
                //         icon: "",
                //     },
                // },
                // {
                //     path: "invitemenber",
                //     name: "invitemenber",
                //     component: () => import("@/views/team/teammanagement/invitemenber.vue"),
                //     meta: {
                //         title: "邀请成员",
                //         icon: "",
                //     },
                // },
                // {
                //     path: "menbermsg",
                //     name: "menbermsg",
                //     component: () => import("@/views/team/teammanagement/menbermsg.vue"),
                //     meta: {
                //         title: "成员信息",
                //         icon: "",
                //         list: ["团队管理", "团队管理", "成员管理"],
                //     },
                // },
                {
                    path: "departmentmanager",
                    name: "departmentmanager",
                    component: () => import("@/views/team/teammanagement/departmentmanager.vue"),
                    meta: {
                        title: "部门管理",
                        icon: "",
                        list: ["团队管理", "管理团队"],
                    },
                },
                // {
                //     path: "departmentmsg",
                //     name: "departmentmsg",
                //     component: () => import("@/views/team/teammanagement/departmentmsg.vue"),
                //     meta: {
                //         title: "成员详情",
                //         icon: "",
                //         list: ["团队管理", "团队管理", "部门管理"],
                //     },
                // },
                // {
                //     path: "callmember",
                //     name: "callmember",
                //     component: () => import("@/views/team/teammanagement/callmember.vue"),
                //     meta: {
                //         title: "调入成员",
                //         icon: "",
                //         list: ["团队管理", "团队管理", "部门管理"],
                //     },
                // },
                {
                    path: "postmanager",
                    name: "postmanager",
                    component: () => import("@/views/team/teammanagement/postmanager.vue"),
                    meta: {
                        title: "岗位管理",
                        icon: "",
                        list: ["团队管理", "管理团队"],
                    },
                },
                {
                    path: "postauthority",
                    name: "postauthority",
                    component: () => import("@/views/team/teammanagement/postauthority.vue"),
                    meta: {
                        title: "权限配置",
                        icon: "",
                        list: ["团队管理", "管理团队", "岗位管理"],
                    },
                },
                {
                    path: "teamcertification",
                    name: "teamcertification",
                    component: () => import("@/views/team/teammanagement/teamcertification.vue"),
                    meta: {
                        title: "团队认证",
                        icon: "",
                        list: ["团队管理", "管理团队"],
                    },
                },
                // {
                //     path: "postmsg",
                //     name: "postmsg",
                //     component: () => import("@/views/team/teammanagement/postmsg.vue"),
                //     meta: {
                //         title: "新增岗位",
                //         icon: "",
                //         list: ["团队管理", "团队管理", "岗位管理"],
                //     },
                // },
                {
                    path: "operatingrecord",
                    name: "operatingrecord",
                    component: () => import("@/views/team/teammanagement/operatingrecord.vue"),
                    meta: {
                        title: "操作记录",
                        icon: "",
                        list: ["团队管理", "管理团队"],
                    },
                },
            ],
        },
        {
            path: "clientmanagement",
            name: "clientmanagement",
            component: Layout,
            meta: {
                title: "客户管理",
                icon: "",
            },
            children: [
                {
                    path: "clientoverview",
                    name: "clientoverview",
                    component: () => import("@/views/team/clientmanagement/clientoverview.vue"),
                    meta: {
                        title: "客户管理",
                        icon: "",
                        list: ["团队管理"],
                    },
                },
                {
                    path: "clientmsg",
                    name: "clientmsg",
                    component: () => import("@/views/team/clientmanagement/clientmsg.vue"),
                    meta: {
                        title: "新增客户",
                        icon: "",
                        list: ["团队管理", "客户管理"],
                    },
                },
                // {
                //     path: "clientcertification",
                //     name: "clientcertification",
                //     component: () => import("@/views/team/clientmanagement/clientcertification.vue"),
                //     meta: {
                //         title: "客户资质",
                //         icon: "",
                //         list: ["团队管理", "客户管理"],
                //     },
                // },
                // {
                //     path: "cliententrust",
                //     name: "cliententrust",
                //     component: () => import("@/views/team/clientmanagement/cliententrust.vue"),
                //     meta: {
                //         title: "授权委托",
                //         icon: "",
                //         list: ["团队管理", "客户管理"],
                //     },
                // },
            ],
        },
        {
            path: "suppliermanagement",
            name: "suppliermanagement",
            component: Layout,
            meta: {
                title: "供应商管理",
                icon: "",
            },
            children: [
                {
                    path: "supplieroverview",
                    name: "supplieroverview",
                    component: () => import("@/views/team/suppliermanagement/supplieroverview.vue"),
                    meta: {
                        title: "供应商管理",
                        icon: "",
                        list: ["团队管理"],
                    },
                },
                {
                    path: "suppliermsg",
                    name: "suppliermsg",
                    component: () => import("@/views/team/suppliermanagement/suppliermsg.vue"),
                    meta: {
                        title: "新增供应商",
                        icon: "",
                        list: ["团队管理", "供应商管理"],
                    },
                },
                // {
                //     path: "suppliercertification",
                //     name: "suppliercertification",
                //     component: () => import("@/views/team/suppliermanagement/suppliercertification.vue"),
                //     meta: {
                //         title: "供应商资质",
                //         icon: "",
                //         list: ["团队管理", "供应商管理"],
                //     },
                // },
                // {
                //     path: "supplierentrust",
                //     name: "supplierentrust",
                //     component: () => import("@/views/team/suppliermanagement/supplierentrust.vue"),
                //     meta: {
                //         title: "授权委托",
                //         icon: "",
                //         list: ["团队管理", "供应商管理"],
                //     },
                // },
            ],
        },
    ],
};
